package cn.liontalk.DecoratorPattern.Decorator;

/**
 * Created by ZhouZhe on 2018/5/20.
 */
public class Mocha extends CondimnetDecorastor {

    Beverage beverage;


    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() +",Mocha";
    }

    @Override
    public double cost() {
        return 0.20+beverage.cost();
    }
}
